package com.jk.admin.dao;

import com.jk.admin.entity.Order;
import com.jk.admin.entity.OrderItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface OrderDao {

    List<Order> GetOrderList(@Param("order")Order order,@Param("userid") String userid);

    void delOrderId(@Param("ids")String[] ids);

    List<OrderItem> getOrderItem(@Param("oid") String oid);
    //计算商品总金额
    Double selectItemsMoney();

    @Update("update t_order set order_paystate = 2 where order_numbered = #{id}")
    void adupPage(String id);

//    void aaddorder(@Param("order") Order order);
//
//    void upadorder(@Param("order")Order order);
//
//    Order getOrderiD(@Param("id")String id);
}
